﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="DIAGNOSTICO.aspx.cs" Inherits="PC_AYUDA.Formulario_web11" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
    .style3
    {
        width: 100%;
        background-image: url('Account/imagenes/PARARAYOS.jpg');
    }
    .style5
    {
        height: 54px;
    }
    .style6
    {
        height: 56px;
    }
    .style7
    {
        height: 62px;
    }
    .style8
    {
        height: 58px;
    }
    .style9
    {
        height: 58px;
        width: 396px;
    }
    .style10
    {
        height: 54px;
        width: 396px;
    }
    .style11
    {
        height: 56px;
        width: 396px;
    }
    .style12
    {
        height: 62px;
        width: 396px;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
    <table class="style3">
        <tr>
            <td class="style9">
                <asp:Label ID="DIAGNOSTICO" runat="server" Text="ID_DIAGNOSTICO"></asp:Label>
            </td>
            <td class="style8">
                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style10">
                <asp:Label ID="TIPO" runat="server" Text="TIPO"></asp:Label>
            </td>
            <td class="style5">
                <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style11">
                <asp:Label ID="Label2" runat="server" Text="SOLUCION"></asp:Label>
            </td>
            <td class="style6">
                <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style12">
                <asp:Label ID="NOMBRESOLUCION" runat="server" Text="NOMBRE DE SOLUCION"></asp:Label>
            </td>
            <td class="style7">
                <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
            </td>
        </tr>
    </table>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID_DIAGNOSTICO" DataSourceID="SqlDataSource1" 
        EmptyDataText="No hay registros de datos para mostrar." Width="696px">
        <Columns>
            <asp:BoundField DataField="ID_DIAGNOSTICO" HeaderText="ID_DIAGNOSTICO" 
                ReadOnly="True" SortExpression="ID_DIAGNOSTICO" />
            <asp:BoundField DataField="TIPO" HeaderText="TIPO" SortExpression="TIPO" />
            <asp:BoundField DataField="SOLUCION" HeaderText="SOLUCION" 
                SortExpression="SOLUCION" />
            <asp:BoundField DataField="NOMBRE_DE_DIAGNOSTICO" 
                HeaderText="NOMBRE_DE_DIAGNOSTICO" SortExpression="NOMBRE_DE_DIAGNOSTICO" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:PC-PARTESConnectionString %>" 
        DeleteCommand="DELETE FROM [DIAGNOSTICO] WHERE [ID_DIAGNOSTICO] = @ID_DIAGNOSTICO" 
        InsertCommand="INSERT INTO [DIAGNOSTICO] ([ID_DIAGNOSTICO], [TIPO], [SOLUCION], [NOMBRE DE DIAGNOSTICO]) VALUES (@ID_DIAGNOSTICO, @TIPO, @SOLUCION, @NOMBRE_DE_DIAGNOSTICO)" 
        ProviderName="<%$ ConnectionStrings:PC-PARTESConnectionString.ProviderName %>" 
        SelectCommand="SELECT [ID_DIAGNOSTICO], [TIPO], [SOLUCION], [NOMBRE DE DIAGNOSTICO] AS NOMBRE_DE_DIAGNOSTICO FROM [DIAGNOSTICO]" 
        UpdateCommand="UPDATE [DIAGNOSTICO] SET [TIPO] = @TIPO, [SOLUCION] = @SOLUCION, [NOMBRE DE DIAGNOSTICO] = @NOMBRE_DE_DIAGNOSTICO WHERE [ID_DIAGNOSTICO] = @ID_DIAGNOSTICO">
        <DeleteParameters>
            <asp:Parameter Name="ID_DIAGNOSTICO" Type="String" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="ID_DIAGNOSTICO" Type="String" />
            <asp:Parameter Name="TIPO" Type="String" />
            <asp:Parameter Name="SOLUCION" Type="String" />
            <asp:Parameter Name="NOMBRE_DE_DIAGNOSTICO" Type="String" />
        </InsertParameters>
        <UpdateParameters>
            <asp:Parameter Name="TIPO" Type="String" />
            <asp:Parameter Name="SOLUCION" Type="String" />
            <asp:Parameter Name="NOMBRE_DE_DIAGNOSTICO" Type="String" />
            <asp:Parameter Name="ID_DIAGNOSTICO" Type="String" />
        </UpdateParameters>
    </asp:SqlDataSource>
    <br />
</p>
</asp:Content>
